/*****************************************************************************************
 * FILE NAME: srv_signal                       COPYRIGHT (c) cos 2024
 * REVISION:  1.0.0                                     All Rights Reserved
 * DESCRIPTION:
 * =======================================================================================
 * UPDATE HISTORY:
 * REV      AUTHOR      DATE
 * v1.0.0   Tuxin       2024.10.14
 * DESCRIPTION OF CHANGE:
 ****************************************************************************************/
#ifndef __SRV_SIGNAL_H
#define __SRV_SIGNAL_H

//----------------------------------------------------------------------------------------
// @Project Includes
#include "typedefs.h"

//----------------------------------------------------------------------------------------
// @Global Macro Define in the module

//----------------------------------------------------------------------------------------
// @Global Type defines in the module
typedef enum en_signal_list
{
	  MCU_CHARGER_IN = 0,
	  MCU_LOAD_IN    = 1,
    MAX_SIGNAL_NUM  = 2
} en_signal_list_t;

typedef struct stc_signal
{
    uint8_t u8state; 
    uint8_t u8validCnts;

}stc_signal_t;

//----------------------------------------------------------------------------------------
// @Export global Variables declare in the module

//----------------------------------------------------------------------------------------
// @Export declaration of functions in the module
void srv_signal_init(void);
void srv_signal_updateActive(void);

bool_t srv_signal_getChargeIn(void);
bool_t srv_signal_getLoadIn(void);

#endif

// =======================================================================================
// End of file.
// =======================================================================================
